package com.lnsf.bookstore.common.dto;

import com.lnsf.bookstore.common.dto.ApiConstants;
import com.lnsf.bookstore.common.dto.ResultDto;

/**
 * 处理结果成功dto
 */
public class ResultSuccessDto extends ResultDto<Object> {

    public ResultSuccessDto(){
        super.setStatus(ApiConstants.SUCCESS);
    }

    public ResultSuccessDto(String msg){
        super.setMsg(msg);
        super.setStatus(ApiConstants.SUCCESS);

    }
    public ResultSuccessDto(String msg,Object data){
        super.setMsg(msg);
        super.setData(data);
        super.setStatus(ApiConstants.SUCCESS);
    }

}
